import request from '@/utils/request'

// 查询基础数据列表
export function listBasic(query) {
  return request({
    url: '/system/basic/list',
    method: 'get',
    params: query
  })
}

// 查询基础数据详细
export function getBasic(basiId) {
  return request({
    url: '/system/basic/' + basiId,
    method: 'get'
  })
}

// 新增基础数据
export function addBasic(data) {
  return request({
    url: '/system/basic',
    method: 'post',
    data: data
  })
}

// 修改基础数据
export function updateBasic(data) {
  return request({
    url: '/system/basic',
    method: 'put',
    data: data
  })
}

// 删除基础数据
export function delBasic(basiId) {
  return request({
    url: '/system/basic/' + basiId,
    method: 'delete'
  })
}

// 导出基础数据
export function exportBasic(query) {
  return request({
    url: '/system/basic/export',
    method: 'get',
    params: query
  })
}

// 查询页脚信息
export function getFooterInfo() {
  return request({
    url: '/system/basic/footer',
    method: 'get'
  })
}

// 查询页脚信息
export function getRecordNumber() {
  return request({
    url: '/system/basic/record',
    method: 'get'
  })
}
